﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ListApplicationProductByProductType.aspx.cs" Inherits="WXYW.ListApplicationProductByProductType" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    按产品型号-所有维修记录
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <asp:GridView ID="productGridView" runat="server" CssClass="tableList" BorderWidth="1px"
        BorderColor="#888888" AutoGenerateColumns="False" AllowPaging="True" PageSize="20"
        Width="100%" OnPageIndexChanging="productGridView_PageIndexChanging" OnRowDataBound="productGridView_RowDataBound"
        EnableModelValidation="True">
        <Columns>
            <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                <ItemTemplate>
                    <asp:Label ID="IDLbl" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="RMA单号">
                <ItemTemplate>
                    <%#Eval("ApplicationForm.ApplicationCode") %>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="型号">
                <ItemTemplate>
                    <%#Eval("ProductType.ProductTypeName") %>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
            </asp:TemplateField>
             <asp:BoundField HeaderText="序列号" DataField="ProductSerialNumber">
                <HeaderStyle Wrap="False" />
            </asp:BoundField>            
            <asp:TemplateField HeaderText="版本">
                <ItemTemplate>
                    <%#Eval("ProductVersionNumber")%>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="维修零件" DataField="RepairAccessory">
                <HeaderStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField HeaderText="故障分析" DataField="ReasonToProblem">
                <HeaderStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField HeaderText="更换/替换" DataField="ChangeType">
                <HeaderStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField HeaderText="替换序列号" DataField="ReplaceProductSerialNumber">
                <HeaderStyle Wrap="False" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="申请时间">
                <ItemTemplate>
                    <%#Eval("ApplicationForm.ApplicationDateTime")%>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="完成日期" DataField="RepairCompleteDateTime">
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="状态">
                <ItemTemplate>
                    <%#Eval("Status")%>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="详细">
                <ItemTemplate>
                    <asp:LinkButton ID="viewLinkButton" runat="server" OnClick="viewLinkButton_Click"
                        CommandArgument='<%#Eval("ApplicationProductID") %>'>查看</asp:LinkButton>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</asp:Content>
